import dashboard from './dashboard'
import templates from './templates'
export default [
  {
    path: '/',
    name: 'Index',
    component: '@/pages/index.vue',
    redirect: '/dashboard',
    children: [...dashboard, ...templates]
  },
  {
    path: '/login',
    name: 'Login',
    component: '@/pages/login/index.vue',
    meta: {
      title: 'global.login'
    }
  },
  {
    path: '/forget',
    name: 'forget',
    component: '@/pages/forgot/index.vue',
    meta: {
      title: 'login.forget'
    }
  },
  {
    path: '/register',
    name: 'Register',
    component: '@/pages/register/index.vue'
  },
  {
    path: '/403',
    name: '403',
    component: '@/pages/403.vue'
  },
  {
    path: '*',
    name: '404',
    component: '@/pages/404.vue'
  }
]
